<?php if (!isset($v_sval)) exit; ?>
<?php
$v_offset = (isset($_REQUEST["hdn_offset"])) ? $_REQUEST["hdn_offset"] : 0;
$v_num_row = (isset($_REQUEST["hdn_num_row"])) ? $_REQUEST["hdn_num_row"] : SYS_ITEMS_PER_PAGE;

$v_news_id = (isset($_REQUEST["txt_news_id"])) ? $_REQUEST["txt_news_id"] : 0;
$v_news_category = (isset($_REQUEST["txt_news_category"])) ? $_REQUEST["txt_news_category"] : 0;
$v_news_title = (isset($_REQUEST["txt_news_title"])) ? $_REQUEST["txt_news_title"] : 0;
$v_news_description = (isset($_REQUEST["txt_news_description"])) ? $_REQUEST["txt_news_description"] : 0;
$v_news_content = (isset($_REQUEST["txt_news_content"])) ? $_REQUEST["txt_news_content"] : 0;
$v_news_time = (isset($_REQUEST["txt_news_time"])) ? $_REQUEST["txt_news_time"] : 0;
$v_news_status = (isset($_REQUEST["txt_news_status"])) ? $_REQUEST["txt_news_status"] : 0;
$v_news_order = (isset($_REQUEST["txt_news_order"])) ? $_REQUEST["txt_news_order"] : 0;
$v_news_hitcount = (isset($_REQUEST["txt_news_hitcount"])) ? $_REQUEST["txt_news_hitcount"] : 0;
$v_news_src = (isset($_REQUEST["txt_news_src"])) ? $_REQUEST["txt_news_src"] : 0;
$v_news_key = (isset($_REQUEST["txt_news_key"])) ? $_REQUEST["txt_news_key"] : 0;
$v_account_id = (isset($_REQUEST["txt_account_id"])) ? $_REQUEST["txt_account_id"] : 0;

$news_id = (isset($_REQUEST["hdn_news_id"])) ? $_REQUEST["hdn_news_id"] : 0;
$news_time = '';
$news_content = '';

if ( $news_id ){
	$rs = getSingerNews ($news_id);
	if ($arr = mysql_fetch_assoc($rs)){
		$news_time = convertSQLDatetoDate($arr['NEWS_TIME'],true);
		$news_content = $arr['NEWS_CONTENT'];
	}
}

$v_where_clause = " AND NEWS_CATEGORY = '".NEWS_CATEGORY_USER_NEWS."' AND ACCOUNT_ID = '".$user_id."'";
$rs_all_news = getAllNews($v_where_clause,$v_offset ,$v_num_row);
$v_dsp_news_list = '';
$v_inc = 1;
while ( $arr_news = mysql_fetch_array($rs_all_news,MYSQL_NUM)){
	$v_news_id=$arr_news["0"];
	$v_news_category=$arr_news["1"];
	$v_news_title=$arr_news["2"];
	$v_news_description=$arr_news["3"];
	$v_news_content=$arr_news["4"];
	$v_news_time=$arr_news["5"];
	$v_news_status=$arr_news["6"];
	$v_news_order=$arr_news["7"];
	$v_news_hitcount=$arr_news["8"];
	$v_news_src=$arr_news["9"];
	$v_news_key=$arr_news["10"];
	
	$v_dsp_news_list .='
	<div class="element">
	</div>';	
	$v_inc++;

}
		
$v_number_of_all_result = countAll($v_where_clause,'TB_NEWS');
?>
